<?php include(ML_TPL_ROOTPATH.'_tpl_htmlheader.php'); ?>
  <body>
<?php include(ML_TPL_ROOTPATH.'_tpl_top.php'); ?>
    
    <div class="container">

<div class="row">
  <div class="span6">
    <div class="bsa well" style="text-align: center;">
          <a href="<?php echo $tinyurl ? $tinyurl : $longurl; ?>" target="_blank"><img src="<?php echo $content_pic_url;?>" title="<?php echo $gd_title;?>" alt="<?php echo $gd_title;?>"/></a>
    </div>
  </div>

<!-- right -->

  <div class="span6">
    <div class="row">
      <div class="span6">
        <div class="bsa well ml_gdshow_impor_bg">
          <!-- product info -->
            <h3 style="margin-top: 0px"><?php echo $gd_title;?></h3>
            <div class="row">
              <div style="float: left;padding-left: 30px">
                <a href="<?php echo $tinyurl ? $tinyurl : $longurl; ?>" class="btn btn-warning btn-large" style="word-break: keep-all" target="_blank"><?php echo $gd_price;?>&nbsp;去购买</a>
              </div>
              <div class="span3">

              </div>
            </div>
            <br/>
            <div style="padding:4px;text-align:right;">
                去看更多：<?php foreach ($tags as $key => $value) { ?>
                &nbsp;&nbsp;&nbsp;<a href="<?php echo ml_tool_urlMaker::guang_tag($value); ?>"><?php echo $value; ?></a>
                <?php } ?>
            </div>
          <!-- / product info -->
        </div>
        <!--
        <div class="bsa well">
          <table><tbody>
            <tr>
              <td><a href="" class="btn btn-primary" style="word-break: keep-all">收&nbsp;&nbsp;&nbsp;&nbsp;藏&nbsp;&nbsp;|&nbsp;&nbsp;454</a></td>
              <td style="padding-left:15px">5小时前 resetbear 收藏到 我喜欢的筐筐 专辑中</td>
            </tr>
          </tbody></table>
        </div>
        -->
        <div class="bsa well">
          <!-- user_info -->
          <?php include(ML_TPL_ROOTPATH.'module/tpl_mod_userinfo_horz.php'); ?>
          <!-- / user_info -->
        </div>
      </div>
    </div>
  </div><!--row-->
</div>


<div class="row">
  <div class="span6">
    <div class="bsa well" style="text-align: right;">
      <ul id="tab" class="nav nav-tabs">
        <li class="active"><a href="#cmt_cmt" data-toggle="tab">评论</a></li>
        <!--<li><a href="#psn_baby" data-toggle="tab">收藏</a></li>-->
      </ul>
      <div id="myTabContent" class="tab-content">
        <div>
          <div class="tab-pane fade in active" id="cmt_cmt">
            <div id="cmt_cmtList">
              <div style="padding:20px;text-align: center;vertical-align: middle;">加载中...</div>
            </div>
            
          <div class="pagination" style="margin-top: 0px;" id="cmt_cmtPager">
          </div>

          <?php if($isLogin){ ?>
          <div class="row-fluid">
            <div class="span2" style="text-align: center;">
              <img style="width:50px" src="<?php echo $aVisitor['headPic']; ?>">
            </div>
            <div class="span10">
              <textarea style="width:95%" id="cmt_cmtInput"></textarea><br/>
              <input type="hidden" id="cmt_cmtComid" name="comid" value=""/>
              <img src="http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/ac/smilea_org.gif" style="width:20px;float:left;" id="cmt_cmtEmotion" />
              <span style="float:right;"><a class="btn btn-large" id="cmt_cmtSubmit">&nbsp;&nbsp;发&nbsp;&nbsp;&nbsp;&nbsp;布&nbsp;&nbsp;</a></span>
              <span class="ml_alert_font" style="float:right;padding: 10px;" id="cmt_cmtAlert"></span>
            </div>
          </div>
          <?php }else{ ?>
            <div style="padding:20px;text-align: center;vertical-align: middle;">快登录，参与讨论吧~~</div>
          <?php } ?>
          </div>
        </div>
        <div class="tab-pane fade in active" id="cmt_col">
        </div>
      </div>
    </div>
  </div>
  <!-- right -->
  <div class="span6">
    <!--
      <h3>你来自于 北京 ？那也可以看看这些店铺</h3>
      <div style="text-align: center">
      <table class=" table-condensed" style="width:300px">
        <tbody>
          <tr>
            <td><img src="img\淘宝.png"/>bear的小店<img src="http://www.2png.cn/uploads/allimg/120409/20461551I-14.png" style="width:15px"/><img src="http://www.2png.cn/uploads/allimg/120409/20461551I-14.png" style="width:15px"/><img src="http://www.2png.cn/uploads/allimg/120409/20461551I-14.png" style="width:15px"/></td>
            <td>￥81.00</td>
          </tr>
          <tr>
            <td><img src="img\淘宝.png"/>bear的小店<img src="http://www.2png.cn/uploads/allimg/120409/20461551I-14.png" style="width:15px"/><img src="http://www.2png.cn/uploads/allimg/120409/20461551I-14.png" style="width:15px"/><img src="http://www.2png.cn/uploads/allimg/120409/20461551I-14.png" style="width:15px"/></td>
            <td>￥81.00</td>
          </tr>
          <tr>
            <td><img src="img\淘宝.png"/>bear的小店<img src="http://www.2png.cn/uploads/allimg/120409/20461551I-14.png" style="width:15px"/><img src="http://www.2png.cn/uploads/allimg/120409/20461551I-14.png" style="width:15px"/><img src="http://www.2png.cn/uploads/allimg/120409/20461551I-14.png" style="width:15px"/></td>
            <td>￥81.00</td>
          </tr>
        </tbody>
      </table>
      </div>
    -->
      <h3>这是不是你喜欢的？</h3>
      <?php 
        foreach($cate_array as $tag => $rows){ 
      ?>
      <h4><a href="<?php echo ml_tool_urlMaker::guang_tag($tag); ?>"><?php echo $tag; ?></a></h4>
      <div class="row-fluid">
        <div class="span2"><a href="<?php echo ml_tool_urlMaker::guang_tag($tag,'hot',$rows[0]['rid']);?>" class="picimg"><img src="<?php echo ml_tool_picid::pid2url($rows[0]['pic_id'], 'thm') ?>"/></a></div>
        <div class="span4"><a href="<?php echo ml_tool_urlMaker::guang_tag($tag,'hot',$rows[0]['rid']);?>" class="picimg"><?php echo $rows[0]['gd_title']; ?></a></div>
        <div class="span2"><a href="<?php echo ml_tool_urlMaker::guang_tag($tag,'hot',$rows[1]['rid']);?>" class="picimg"><img src="<?php echo ml_tool_picid::pid2url($rows[1]['pic_id'] , 'thm') ?>"/></a></div>
        <div class="span4"><a href="<?php echo ml_tool_urlMaker::guang_tag($tag,'hot',$rows[1]['rid']);?>" class="picimg"><?php echo $rows[1]['gd_title']; ?></a></div>
      </div>
      <?php } ?>
  </div>
</div>



</div><!--container-->
<?php include(ML_TPL_ROOTPATH.'_tpl_sina_foot.php'); ?>
<?php include(ML_TPL_ROOTPATH.'_tpl_footer_js.php'); ?>
  </body>
</html>
